﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class WorldMapWorldMapUtilityWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(WorldMap.WorldMapUtility);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 34, 1, 1);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "IdxToWorldPos", _m_IdxToWorldPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "IdxToGirdPos", _m_IdxToGirdPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GridPosToWorldPos", _m_GridPosToWorldPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "WorldPosToIdx", _m_WorldPosToIdx_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "WorldPosToGridPos", _m_WorldPosToGridPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GridPosToIdx", _m_GridPosToIdx_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIntersectionWithLineAndPlane", _m_GetIntersectionWithLineAndPlane_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDistanceFromPointToPlane", _m_GetDistanceFromPointToPlane_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDistanceFromPointToLine", _m_GetDistanceFromPointToLine_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProjectionPointFromPlane", _m_GetProjectionPointFromPlane_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProjectionVectorFromPlane", _m_GetProjectionVectorFromPlane_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProjectionPointFromLine", _m_GetProjectionPointFromLine_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProjectionOnVector", _m_GetProjectionOnVector_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAngleBetweenVector", _m_GetAngleBetweenVector_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBoxMullerVect2", _m_GetBoxMullerVect2_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRandomVect2", _m_GetRandomVect2_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRandomVect3", _m_GetRandomVect3_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckQuadrant", _m_CheckQuadrant_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertToVector2IntFloor", _m_ConvertToVector2IntFloor_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSignOne", _m_GetSignOne_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetPauseTileDisplay", _m_SetPauseTileDisplay_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetForceLoad", _m_SetForceLoad_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateViewRectForce", _m_UpdateViewRectForce_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateCenterViewPosition", _m_UpdateCenterViewPosition_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToPos", _m_MoveToPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveToPosWithoutTween", _m_MoveToPosWithoutTween_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ChangPosToViewCenter", _m_ChangPosToViewCenter_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ZoomLOD", _m_ZoomLOD_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ZoomTo", _m_ZoomTo_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMapClickPos", _m_GetMapClickPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetUICheckStatus", _m_SetUICheckStatus_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetFocusTroopId", _m_SetFocusTroopId_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetFocusTroopSpeed", _m_SetFocusTroopSpeed_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ToPosMaxTime", _g_get_ToPosMaxTime);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ToPosMaxTime", _s_set_ToPosMaxTime);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "WorldMap.WorldMapUtility does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "WorldMap.WorldMapUtility does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IdxToWorldPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _idx = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = WorldMap.WorldMapUtility.IdxToWorldPos( _idx );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IdxToGirdPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _idx = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = WorldMap.WorldMapUtility.IdxToGirdPos( _idx );
                        translator.PushUnityEngineVector2(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GridPosToWorldPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _gPos;translator.Get(L, 1, out _gPos);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GridPosToWorldPos( _gPos );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_WorldPosToIdx_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _wPos;translator.Get(L, 1, out _wPos);
                    
                        var gen_ret = WorldMap.WorldMapUtility.WorldPosToIdx( _wPos );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_WorldPosToGridPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _wPos;translator.Get(L, 1, out _wPos);
                    
                        var gen_ret = WorldMap.WorldMapUtility.WorldPosToGridPos( _wPos );
                        translator.PushUnityEngineVector2(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GridPosToIdx_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _gPosX = LuaAPI.xlua_tointeger(L, 1);
                    int _gPosY = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GridPosToIdx( _gPosX, _gPosY );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector2>(L, 1)) 
                {
                    UnityEngine.Vector2 _gPos;translator.Get(L, 1, out _gPos);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GridPosToIdx( _gPos );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.GridPosToIdx!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetIntersectionWithLineAndPlane_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) 
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _direct;translator.Get(L, 2, out _direct);
                    UnityEngine.Vector3 _planeNormal;translator.Get(L, 3, out _planeNormal);
                    UnityEngine.Vector3 _planePoint;translator.Get(L, 4, out _planePoint);
                    float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetIntersectionWithLineAndPlane( _point, _direct, _planeNormal, _planePoint, _maxDistance );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)) 
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _direct;translator.Get(L, 2, out _direct);
                    UnityEngine.Vector3 _planeNormal;translator.Get(L, 3, out _planeNormal);
                    UnityEngine.Vector3 _planePoint;translator.Get(L, 4, out _planePoint);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetIntersectionWithLineAndPlane( _point, _direct, _planeNormal, _planePoint );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.GetIntersectionWithLineAndPlane!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetDistanceFromPointToPlane_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _planeNormal;translator.Get(L, 2, out _planeNormal);
                    UnityEngine.Vector3 _planePoint;translator.Get(L, 3, out _planePoint);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetDistanceFromPointToPlane( _point, _planeNormal, _planePoint );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetDistanceFromPointToLine_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _linePoint;translator.Get(L, 2, out _linePoint);
                    UnityEngine.Vector3 _lineDir;translator.Get(L, 3, out _lineDir);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetDistanceFromPointToLine( _point, _linePoint, _lineDir );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetProjectionPointFromPlane_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _planeNormal;translator.Get(L, 2, out _planeNormal);
                    UnityEngine.Vector3 _planePoint;translator.Get(L, 3, out _planePoint);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetProjectionPointFromPlane( _point, _planeNormal, _planePoint );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetProjectionVectorFromPlane_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _vect;translator.Get(L, 1, out _vect);
                    UnityEngine.Vector3 _planeNormal;translator.Get(L, 2, out _planeNormal);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetProjectionVectorFromPlane( _vect, _planeNormal );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetProjectionPointFromLine_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _point;translator.Get(L, 1, out _point);
                    UnityEngine.Vector3 _lineDir;translator.Get(L, 2, out _lineDir);
                    UnityEngine.Vector3 _linePoint;translator.Get(L, 3, out _linePoint);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetProjectionPointFromLine( _point, _lineDir, _linePoint );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetProjectionOnVector_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _vectA;translator.Get(L, 1, out _vectA);
                    UnityEngine.Vector3 _vectB;translator.Get(L, 2, out _vectB);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetProjectionOnVector( _vectA, _vectB );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAngleBetweenVector_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _vectA;translator.Get(L, 1, out _vectA);
                    UnityEngine.Vector3 _vectB;translator.Get(L, 2, out _vectB);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetAngleBetweenVector( _vectA, _vectB );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBoxMullerVect2_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetBoxMullerVect2(  );
                        translator.PushUnityEngineVector2(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetRandomVect2_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetRandomVect2(  );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetRandomVect3_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetRandomVect3(  );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckQuadrant_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _v;translator.Get(L, 1, out _v);
                    
                        var gen_ret = WorldMap.WorldMapUtility.CheckQuadrant( _v );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ConvertToVector2IntFloor_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _v2;translator.Get(L, 1, out _v2);
                    
                        var gen_ret = WorldMap.WorldMapUtility.ConvertToVector2IntFloor( _v2 );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSignOne_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _i = LuaAPI.xlua_tointeger(L, 1);
                    int _equalZero = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _i, _equalZero );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) 
                {
                    int _i = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _i );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    float _i = (float)LuaAPI.lua_tonumber(L, 1);
                    float _equalZero = (float)LuaAPI.lua_tonumber(L, 2);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _i, _equalZero );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) 
                {
                    float _i = (float)LuaAPI.lua_tonumber(L, 1);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _i );
                        LuaAPI.lua_pushnumber(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector2Int>(L, 1)) 
                {
                    UnityEngine.Vector2Int _v;translator.Get(L, 1, out _v);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _v );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector2>(L, 1)) 
                {
                    UnityEngine.Vector2 _v;translator.Get(L, 1, out _v);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetSignOne( _v );
                        translator.PushUnityEngineVector2(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.GetSignOne!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetPauseTileDisplay_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _pause = LuaAPI.lua_toboolean(L, 1);
                    
                    WorldMap.WorldMapUtility.SetPauseTileDisplay( _pause );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetForceLoad_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _value = LuaAPI.lua_toboolean(L, 1);
                    
                    WorldMap.WorldMapUtility.SetForceLoad( _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateViewRectForce_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    WorldMap.WorldMapUtility.UpdateViewRectForce(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateCenterViewPosition_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _currentPosition;translator.Get(L, 1, out _currentPosition);
                    
                    WorldMap.WorldMapUtility.UpdateCenterViewPosition( _currentPosition );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    UnityEngine.Vector3 _pos;translator.Get(L, 1, out _pos);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 2);
                    int _speed = LuaAPI.xlua_tointeger(L, 3);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos, _callback, _speed );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 2)) 
                {
                    UnityEngine.Vector3 _pos;translator.Get(L, 1, out _pos);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 2);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos, _callback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector3>(L, 1)) 
                {
                    UnityEngine.Vector3 _pos;translator.Get(L, 1, out _pos);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector2>(L, 1)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    UnityEngine.Vector2 _pos;translator.Get(L, 1, out _pos);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 2);
                    int _speed = LuaAPI.xlua_tointeger(L, 3);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos, _callback, _speed );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector2>(L, 1)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 2)) 
                {
                    UnityEngine.Vector2 _pos;translator.Get(L, 1, out _pos);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 2);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos, _callback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector2>(L, 1)) 
                {
                    UnityEngine.Vector2 _pos;translator.Get(L, 1, out _pos);
                    
                    WorldMap.WorldMapUtility.MoveToPos( _pos );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.MoveToPos!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MoveToPosWithoutTween_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _pos;translator.Get(L, 1, out _pos);
                    
                    WorldMap.WorldMapUtility.MoveToPosWithoutTween( _pos );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ChangPosToViewCenter_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector2 _pos;translator.Get(L, 1, out _pos);
                    
                    WorldMap.WorldMapUtility.ChangPosToViewCenter( _pos );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ZoomLOD_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<DG.Tweening.Ease>(L, 4)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 5)) 
                {
                    int _lodLayer = LuaAPI.xlua_tointeger(L, 1);
                    float _percent = (float)LuaAPI.lua_tonumber(L, 2);
                    float _duration = (float)LuaAPI.lua_tonumber(L, 3);
                    DG.Tweening.Ease _ease;translator.Get(L, 4, out _ease);
                    DG.Tweening.TweenCallback _callback = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 5);
                    
                    WorldMap.WorldMapUtility.ZoomLOD( _lodLayer, _percent, _duration, _ease, _callback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<DG.Tweening.Ease>(L, 4)) 
                {
                    int _lodLayer = LuaAPI.xlua_tointeger(L, 1);
                    float _percent = (float)LuaAPI.lua_tonumber(L, 2);
                    float _duration = (float)LuaAPI.lua_tonumber(L, 3);
                    DG.Tweening.Ease _ease;translator.Get(L, 4, out _ease);
                    
                    WorldMap.WorldMapUtility.ZoomLOD( _lodLayer, _percent, _duration, _ease );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    int _lodLayer = LuaAPI.xlua_tointeger(L, 1);
                    float _percent = (float)LuaAPI.lua_tonumber(L, 2);
                    float _duration = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    WorldMap.WorldMapUtility.ZoomLOD( _lodLayer, _percent, _duration );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.ZoomLOD!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ZoomTo_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<DG.Tweening.TweenCallback>(L, 3)) 
                {
                    float _zoom = (float)LuaAPI.lua_tonumber(L, 1);
                    float _duration = (float)LuaAPI.lua_tonumber(L, 2);
                    DG.Tweening.TweenCallback _callBack = translator.GetDelegate<DG.Tweening.TweenCallback>(L, 3);
                    
                    WorldMap.WorldMapUtility.ZoomTo( _zoom, _duration, _callBack );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    float _zoom = (float)LuaAPI.lua_tonumber(L, 1);
                    float _duration = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    WorldMap.WorldMapUtility.ZoomTo( _zoom, _duration );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMap.WorldMapUtility.ZoomTo!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMapClickPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Vector3 _value;translator.Get(L, 1, out _value);
                    
                        var gen_ret = WorldMap.WorldMapUtility.GetMapClickPos( _value );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetUICheckStatus_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    bool _status = LuaAPI.lua_toboolean(L, 1);
                    
                    WorldMap.WorldMapUtility.SetUICheckStatus( _status );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetFocusTroopId_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    long _tid = LuaAPI.lua_toint64(L, 1);
                    int _type = LuaAPI.xlua_tointeger(L, 2);
                    
                    WorldMap.WorldMapUtility.SetFocusTroopId( _tid, _type );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetFocusTroopSpeed_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    float _speed = (float)LuaAPI.lua_tonumber(L, 1);
                    float _startX = (float)LuaAPI.lua_tonumber(L, 2);
                    float _startZ = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    WorldMap.WorldMapUtility.SetFocusTroopSpeed( _speed, _startX, _startZ );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ToPosMaxTime(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushnumber(L, WorldMap.WorldMapUtility.ToPosMaxTime);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_ToPosMaxTime(RealStatePtr L)
        {
		    try {
                
			    WorldMap.WorldMapUtility.ToPosMaxTime = (float)LuaAPI.lua_tonumber(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
